﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.SetTemplateAndKeywords.CApSetTemplateAndKeywordsCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Windows.Forms;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.SetTemplateAndKeywords;

public class CApSetTemplateAndKeywordsCmd : TxButtonCommand
{
  private CApSetTemplateAndKeywordsEnabler m_enabler;

  public CApSetTemplateAndKeywordsCmd() => this.m_enabler = new CApSetTemplateAndKeywordsEnabler();

  public virtual bool Connect() => true;

  public virtual bool Licensed => TxCommandLicenser.SetTemplateAndKeywordsLicense;

  public virtual void Execute(object cmdParams)
  {
    ((Control) new CUISetTemplateAndKeywordsDialog()).Show();
  }

  public virtual string Category => CApSetTemplateAndKeywordsStringTable.CMD_CATEGORY;

  public virtual string Name => CApSetTemplateAndKeywordsStringTable.CMD_NAME;

  public virtual string Bitmap => "SetTemplateAndKeywords.CUISetTemplateAndKeyword.bmp";

  public virtual string LargeBitmap => "SetTemplateAndKeywords.CUISetTemplateAndKeyword_LARGE.png";

  public virtual string Description => CApSetTemplateAndKeywordsStringTable.CMD_DESCRIPTION;

  public virtual string Tooltip => CApSetTemplateAndKeywordsStringTable.CMD_TOOLTIP;

  public virtual ITxImage Image
  {
    get => (ITxImage) TxImageManager.GetImageByKey("SetTemplateAndKeywords");
  }

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_enabler;
}
